/*
 * ApplicationPanel.java
 * 
 * @version 1.0, April 4, 2011
 * CS 2340 Team 10: Cyberdyne Systems
 */
package edu.gatech.oad.cyberdoc.view;

import javax.swing.JPanel;

import org.json.JSONObject;

/**
 * Defines the requirements for a class to be able to be loaded when a response
 * is received from the server.
 * 
 * @author John Girata
 * @version 1.0, April 4, 2011
 */
@SuppressWarnings("serial")
public abstract class ApplicationPanel extends JPanel {
	
	/**
	 * Called when the panel is displayed.
	 * 
	 * This method should only be used to populate fields based on server
	 * responses. If no information is received from the server (as in
	 * client-only operations such as logout), this method will never be called.
	 * However, when this method is called, it may be assumed that the response
	 * will be non-null.
	 * 
	 * @param response
	 *            The response from the server
	 */
	public abstract void show(JSONObject response);
}
